<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/update" method="post">
    <tr th:object="${emp}">
    <input type="hidden" name="id" th:value="*{id}" >
    姓名:
    <input type="text" name="name" th:value="*{name}" ><br>
    年龄:
    <input type="text" name="age" th:value="*{age}" ><br>
    </tr>
    <input type="submit" value="修改">
</form>
</body>
</html>